package com.dev4dev.web.api;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value="/newwork")
public class NetWork {
	
	private static final Logger LOG = LoggerFactory.getLogger(NetWork.class);
	
	@RequestMapping(method = RequestMethod.GET)
	public String get(Model model) {
		LOG.info("Welcome home!");
		model.addAttribute("controllerMessage",
				"This is the message from the controller!");
		return "home";
	}
}
